package book;

public class Book {
    public String name;
    public int price;
    public String auther;
    public String type;
    public boolean zt;

    public Book(String name,String auther,int price,String type){
        this.name=name;
        this.auther=auther;
        this.price=price;
        this.type=type;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", auther='" + auther + '\'' +
                ", type='" + type + '\'' +
                ", zt=" + ((zt == true)?"已借出":"未借出")+
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getAuther() {
        return auther;
    }

    public void setAuther(String auther) {
        this.auther = auther;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
